home *** CD-ROM | disk | FTP | other *** search
- // CmTBag.h
- // -----------------------------------------------------------------
- // Compendium - C++ Container Class Library
- // Copyright (C) 1992-1994, Glenn M. Poorman, All rights reserved
- // -----------------------------------------------------------------
- // Bag template definition.
- // -----------------------------------------------------------------
-
- #ifndef _CMTBAG_H
- #define _CMTBAG_H
-
- #include <cm/include/cmthash.h>
-
- template <class T> class CmTBag : public CmTHashTable<T> { // Bag definition.
- public:
- CmTBag(unsigned = 10); // Default bag constructor.
- CmTBag(const CmTBag<T>&); // Bag copy constructor.
- ~CmTBag() {} // Bag destructor.
-
- CmTBag<T>& operator=(const CmTBag<T>&); // Assignment operator.
- };
-
- #if defined(__TURBOC__) || defined(__xlC__)
- #include <cm/include/cmtbag.cc>
- #endif
-
- #endif
-